package com.xbongbong.saas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * saas所有功能的按钮
 * 列表+详情
 *
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/1/23 21:55
 * @since v1.0
 */
@Getter
public enum SaasButtonEnum {
    // 所有功能的按钮
    EDIT("edit","enum.saasButton.value.edit","",""),


    COPY("copy","enum.saasButton.value.copy","",""),


    DEL("del","enum.saasButton.value.del","",""),


    ESIGN("esign","enum.paasButton.value.esign","",""),


    DOWNLOAD_CONTRACT("esignDownload","enum.paasButton.value.download_contract","",""),


    ARCHIVED("archived","enum.saasButton.value.archived","",""),


    CANCEL_ARCHIVED("cancelArchived","enum.saasButton.value.cancel_archived","",""),


    PRINT("print","enum.saasButton.value.print","",""),

    LINK_CONTRACT("linkContract","enum.saasButton.value.link_contract","",""),


    DELAY("delay","enum.saasButton.value.delay","",""),


    QUIT("quit","enum.saasButton.value.quit","",""),


    FINISH("finish","enum.saasButton.value.finish","",""),


    CLOSE("close","enum.saasButton.value.close","",""),


    RESTART("restart","enum.saasButton.value.restart","",""),


    RED("red","enum.saasButton.value.red","",""),

    RED_BALANCE("redBalance","enum.saasButton.value.red_balance","",""),


    BAD_DEBT("badDebt","enum.saasButton.value.bad_debt","",""),


    RETURN("return","enum.saasButton.value.return","",""),


    REVERT_CANCEL("revertCancel","enum.saasButton.value.revert_cancel","",""),


    CANCEL("cancel","enum.saasButton.value.cancel","",""),


    ADD("add","enum.saasButton.value.add","primary",""),


    IMPORT("import","enum.saasButton.value.import","",""),


    CUSTOMER_IMPORT("import","enum.saasButton.value.customer_import","",""),


    EXPORT("export","enum.saasButton.value.export","",""),

    CUSTOM_EXPORT("customExport","enum.saasButton.value.custom_export","",""),

    CHECK_REPEAT("checkRepeat","enum.saasButton.value.check_repeat","",""),


    WAIT_PRODUCE("waitProduce","enum.saasButton.value.wait_produce","",""),


    WAIT_PURCHASE("waitPurchase","enum.saasButton.value.wait_purchase","",""),


    WAIT_INSTOCK("waitInstock","enum.saasButton.value.wait_instock","",""),


    WAIT_OUTSTOCK("waitOutstock","enum.saasButton.value.wait_outstock","",""),

    SMART_REPLENISHMENT("smartReplenishment","enum.saasButton.value.smart_replenishment","",""),


    WAIT_ROB("waitRob","enum.saasButton.value.wait_rob","",""),


    STATISTICS("statistics","enum.saasButton.value.statistics","",""),


    SIGNIN_STATISTICS("signInStatistics","enum.saasButton.value.signin_statistics","",""),


    CLASSIFY("classify","enum.saasButton.value.classify","",""),

    //回收站
    DATA_TRASH("dataTrash","enum.saasButton.value.data_trash","",""),

    // 访客计划的完成
    COMPLETE("complete","enum.saasButton.value.complete","",""),

    //报价单
    NEW_VERSION("newVersion","enum.saasButton.value.new_version","",""),

    //預收款
    WRITE_OFF("writeOff","enum.saasButton.value.write_off","",""),

    //应收款上面的核销按钮
    PAYMENT_WRITE_OFF("paymentWriteOff","enum.saasButton.value.payment_write_off","",""),

    //部分坏账
    PARTIAL_BAD("partialBad","enum.saasButton.value.partial_bad","",""),
    // 打标签
    ADD_LABEL("addLabel", "enum.saasButton.value.add_label","",""),
    // 移除标签
    REMOVE_LABEL("removeLabel", "enum.saasButton.value.remove_label","",""),
    // 无效
    INVALID("invalid", "enum.saasButton.value.invalid","",""),
    // 跟进中
    FOLLOW("follow", "enum.saasButton.value.follow","",""),


    SYNCHRONIZATION("synchronization","enum.saasButton.value.synchronization","",""),

    RED_RECEIVABLES("redReceivables","enum.saasButton.value.red_receivables","",""),

    SET_LIST("setList","enum.saasButton.value.set_list","",""),

    SET_PRINT("setPrint","enum.saasButton.value.set_print","",""),

    AREA_SETTING("areaSetting","table.pro_permission.name.distributorAreaSetting","",""),

    VIEW_RECORD("viewRecord","enum.saasButton.value.view_record","",""),

    MARKET_EDIT("marketEdit","enum.saasButton.value.marketEdit","",""),

    MARKET_COPY("marketCopy","enum.saasButton.value.marketCopy","",""),

    MARKET_DEL("marketDel","enum.saasButton.value.marketDel","",""),

    REVOKE("revoke","enum.saasButton.value.revoke","",""),

    STATEMENT_ADD("addStatement", "enum.saasButton.value.statementAdd", "",""),
    REMIND_CONFIRM("remindConfirm", "enum.saasButton.value.remindConfirm", "",""),
    VALET_CONFIRM("valetConfirm", "enum.saasButton.value.valetConfirm", "",""),
    REGENERATE("regenerate", "enum.saasButton.value.regenerate", "",""),
    ORDER_THROUGH("orderThrough","enum.saasButton.value.order_through","",""),

    ORDER_CANCELLATION("orderCancellation","enum.saasButton.value.order_cancellation","",""),
    DELIVERY_ANALYSIS("deliveryAnalysis","enum.saasButton.value.delivery_analysis","",""),
    ELECTRONIC_ORDER_PRINT("electronicOrderPrint","enum.saasButton.value.electronic_order_print","",""),
    ELECTRONIC_ORDER_REPEAT_PRINT("electronicOrderRepeatPrint","enum.saasButton.value.electronic_order_repeat_print","",""),
    ENABLE("enable","enum.saasButton.value.enable","",""),
    KNOWLEDGE_EDIT("knowledgeEdit","enum.saasButton.value.knowledgeEdit","",""),
    KNOWLEDGE_DELETE("knowledgeDelete","enum.saasButton.value.knowledgeDelete","",""),
    DISENABLE("disenable","enum.saasButton.value.disenable","",""),
    CONTRACT_COMPARE("contractCompare", "enum.saasButton.value.contractCompare", "", ""),
    ;

    private String attr;
    private String value;
    private String icon;
    private String type;

    SaasButtonEnum(String attr, String value, String icon, String type) {
        this.attr = attr;
        this.value = value;
        this.icon = icon;
        this.type = type;
    }

    public String getValue() {
        return I18nMessageUtil.getMessage(value);
    }
}
